//
//  CategoryModel.h
//  Present
//
//  Created by dllo on 15/10/3.
//  Copyright (c) 2015年 Lemon. All rights reserved.
//

#import "BaseModel.h"

@interface CategoryModel : BaseModel

@property (nonatomic, retain) NSMutableArray *subcategories;//每组里面多少个频道
@property (nonatomic, copy) NSString *name;//分类的名字

//@property (nonatomic, copy) NSString *name;//每个频道的名字
@property (nonatomic, copy) NSString *icon_url;//每个频道的图片
@property (nonatomic, copy) NSString *category_id;//每个频道的id (与系统名字相同)

@property(nonatomic,assign)BOOL isSelection;

@end
/*
 {
 "code": 200,
 "data": {
 "categories": [
 {
 "icon_url": "http://img02.liwushuo.com/image/150615/3nc5tejwl.png-pw144",
 "id": 1,
 "name": "热门分类",
 "order": 11,
 "status": 0,
 "subcategories": [
 {
 "icon_url": "http://img02.liwushuo.com/image/150615/urgs9vy8a.png-pw144",
 "id": 7,
 "items_count": -67,
 "name": "智能设备",
 "order": 7,
 "parent_id": 1,
 "status": 0
 },
 {},
 {},
 {},
 {},
 {},
 {}
 ]
 },
 {},
 {},
 {},
 {},
 {},
 {},
 {},
 {},
 {},
 {},
 {},
 {},
 {},
 {},
 {},
 {}
 ]
 },
 "message": "OK"
 }
 */